package com.qersoft.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
import java.time.LocalDateTime;


@Setter
@Getter
@Data
@TableName("question_bank")
public class QuestionBank implements Serializable {
    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField(value = "id")
    private Long id;
    @TableField(value = "creator")
    private String creator;
    @TableField(value = "type")// 题目创作者的名字
    private Integer type;         // 题目类型（通过数字表示）
    @TableField(value = "knowledge")
    private String knowledge; // 题目所包含的知识点
    @TableField(value = "subject")
    private String subject;   // 题目所含的学科
    @TableField(value = "level")
    private int level;        // 题目难度（可以通过数字表示）
    @TableField(value = "stem")
    private String stem;      // 题目内容/题干
    @TableField(value = "status")
    private int status;    // 题目状态（0为禁止，1为正常）
    @TableField(value = "update_time")
    private LocalDateTime updateTime; // 上传时间
    @TableField(value = "update_by")
    private String updateBy;
    @TableField(value = "answer")
    private String answer;//正确答案
    @TableField(value = "wrong_answer")
    private String wrongAnswer;//错误答案
}
